package com.gupao.core;

/**
 * Created by Devin on 2018/1/9.
 */
public abstract class JServlet {

    public abstract void doGet(JRequest request,JResponse response);

    public abstract void doPost(JRequest request,JResponse response);

    public void service(JRequest request,JResponse response){
        if("GET".equals(request.getMethod())){
            doGet(request,response);
        }else {
            doPost(request,response);
        }
    }
}
